import collections
class Solution(object):
    def areOccurrencesEqual(self, s):
        c = collections.Counter(s)
        t = list(c.values())
        n = len(t)
        return sum([d == t[0] for d in t]) == n
